package com.niit.dao;

import com.niit.pojo.Consumer;
import org.apache.ibatis.annotations.Param;

public interface LoginMapper {
    int addStudent(Consumer consumer);

    int authenticateUser(@Param("consumer_id") String consumer_name, @Param("consumer_password") String consumer_password);

    int isUsernameTaken(@Param("consumer_id") String consumer_name);

    int authenticateAdmin(@Param("administrator_id") String administrator_name, @Param("administrator_password") String administrator_password);

    int isConsumer(@Param("consumer_id") String consumer_name, @Param("consumer_password") String consumer_password);

    int authenticateWindow(@Param("window_id") String window_name, @Param("window_password") String window_password);

}
